package com.wenwu.common.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class RelicsArchaeological extends FileUtils implements Serializable{

	private static final long serialVersionUID = 7449481468382502193L;

	private Integer archId;

    private String code;

    private String projectName;

    private String approval;

    private String funding;

    private Date begintime;

    private Date endtime;

    private String timelength;

    private String organName;

    private String organAddress;

    private String chargePerson;

    private String organAptitude;

    private String archNumber;

    private String techPerson;

    private String otherPerson;

    private String archArea;

    private String device;
    
    private String timeSQL;
    

    public String getTimeSQL() {
		return timeSQL;
	}

	public void setTimeSQL(String timeSQL) {
		this.timeSQL = timeSQL;
	}

	public Integer getArchId() {
        return archId;
    }

    public void setArchId(Integer archId) {
        this.archId = archId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public String getFunding() {
        return funding;
    }

    public void setFunding(String funding) {
        this.funding = funding;
    }

    public String getBegintime() {
    	if(begintime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(begintime);
		} catch (Exception e) {
			return null;
		}
       // return begintime;
    }

    public void setBegintime(String begintime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.begintime = sdf.parse(begintime);
		} catch (Exception e) {
		}
        //this.begintime = begintime;
    }

    public String getEndtime() {
    	if(endtime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(endtime);
		} catch (Exception e) {
			return null;
		}
       // return endtime;
    }

    public void setEndtime(String endtime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.endtime = sdf.parse(endtime);
		} catch (Exception e) {
		}
        //this.endtime = endtime;
    }

    public String getTimelength() {
        return timelength;
    }

    public void setTimelength(String timelength) {
        this.timelength = timelength;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getOrganAddress() {
        return organAddress;
    }

    public void setOrganAddress(String organAddress) {
        this.organAddress = organAddress;
    }

    public String getChargePerson() {
        return chargePerson;
    }

    public void setChargePerson(String chargePerson) {
        this.chargePerson = chargePerson;
    }

    public String getOrganAptitude() {
        return organAptitude;
    }

    public void setOrganAptitude(String organAptitude) {
        this.organAptitude = organAptitude;
    }

    public String getArchNumber() {
        return archNumber;
    }

    public void setArchNumber(String archNumber) {
        this.archNumber = archNumber;
    }

    public String getTechPerson() {
        return techPerson;
    }

    public void setTechPerson(String techPerson) {
        this.techPerson = techPerson;
    }

    public String getOtherPerson() {
        return otherPerson;
    }

    public void setOtherPerson(String otherPerson) {
        this.otherPerson = otherPerson;
    }

    public String getArchArea() {
        return archArea;
    }

    public void setArchArea(String archArea) {
        this.archArea = archArea;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }
}